#!/usr/bin/env python
# -*- coding: utf-8 -*-

# @Time     :2020/12/09
# @Author   :Changshu
# @File     :Test.py


# s="Let's take LeetCode contest"
# print(s.split(' '))

# stack=[]
# stack.append((1,2))
# print(stack)

# nums=[6,2,6,5,1,2]
# [1, 2, 2, 5, 6, 6]
# nums.sort()

# [6, 6, 5, 2, 2, 1]
# nums.sort(reverse=True)
# print(nums)


# l=[[1,2],[3,4]]
# l=[1,2,3,4]
# print(len(l))
# print(l[0] is list)

# print(3//2)
# print(3%2)

# stack=[1,]
# print(stack)
# stack.append(2)
# print(stack)

# 测试extend函数
# l=[]
# l.extend([1,2,3])
# l.append([4,5,6])
# print(l)

# 测试列表中插入元组
# l=[]
# l.append(('first',1))
# t=l[0]
# t[1]=2
# print(t[1])

# 测试除法
# print(5/2)

s=[1,2,3,4,5,6,7,8,9]
print(sum(s[:4]))

# print(5/2)